package cn.nawang.ebeim.api.service;

import java.util.List;

import cn.nawang.ebeim.api.domain.StorageVersionTreeToDo;
import cn.nawang.ebeim.api.vo.StorageVersionTreeToDoView;

/**
 * @ClassName: StorageVersionTreeToDoService
 * @Description: TODO
 * @author fanyb
 * @date Aug 26, 2015 2:46:08 PM
 * @version v1.0
 */
public interface StorageVersionTreeToDoService {

  public boolean add(StorageVersionTreeToDo storageVersionTreeToDo);

  /**
   * 
   * @author fanyb
   * @Description: 查找未处理的StorageVersionTreeToDo列表
   * @return List<StorageVersionTreeToDo>
   * @date Aug 26, 20156:30:29 PM
   *
   * @修改人
   * @修改日期
   */
  public List<StorageVersionTreeToDoView> findUntreatedList();

  /**
   * 
   * @author fanyb
   * @Description: 批量删除StorageVersionTreeToDo
   * @param ids 编号数组
   * @return boolean 删除结果
   * @date Aug 26, 20152:39:15 PM
   *
   * @修改人
   * @修改日期
   */
  public boolean delete(String[] ids);

  public boolean update(StorageVersionTreeToDo storageVersionTreeToDo);

  /**
   * 
   * @author fanyb
   * @Description: 根据存储云Id查找StorageVersionTreeToDo是否存在
   * @param storageCloudId
   * @return boolean
   * @date Sep 16, 20155:26:32 PM
   *
   * @修改人
   * @修改日期
   */
  public boolean isExistStorageVersionTreeToDo(String storageCloudId, String datasourceId,
      String version);

  public StorageVersionTreeToDo findByDatasourceIdAndVersion(String datasourceId, String version);
}
